package com.weiyun.service.impl;
import com.weiyun.mapper.BusinessMapper;
import com.weiyun.mapper.OrderDetailetMapper;
import com.weiyun.pojo.Business;
import com.weiyun.pojo.OrderDetailet;
import com.weiyun.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class OrderDetailetService implements com.weiyun.service.OrderDetailetService {
    @Autowired
    private OrderDetailetMapper orderDetailetMapper;

    @Override
    public int saveOrderDetailetBatch(List<OrderDetailet> list) throws Exception {
        for(OrderDetailet orderDetailet : list) {
            orderDetailetMapper.saveOrderDetailetBatch(orderDetailet);
        }
        return 1;
    }

    @Override
    public List<OrderDetailet> listOrderDetailetByOrderId(Integer orderId) throws Exception {
        return Collections.emptyList();
    }
}
